<?php

namespace App\Models;


use Illuminate\Database\Eloquent\SoftDeletes;

class PhonicsWithdraw extends BaseModels
{
    use SoftDeletes;

    protected $table = 'phonics_withdraw';
    protected $primaryKey = 'id';
    protected $dates = ['deleted_at'];

    const STATUS_CREATED = 0;
    const STATUS_ERROR = 1;
    const STATUS_FINISHED = 2;

    public function getId()
    {
        return $this->id;
    }

    public function getStudentId()
    {
        return $this->student_id;
    }

    public function setStudentId($value)
    {
        $this->student_id = $value;
    }

    public function getOpenId()
    {
        return $this->open_id;
    }

    public function setOpenId($value)
    {
        $this->open_id = $value;
    }

    public function getAmount()
    {
        return $this->amount;
    }

    public function setAmount($value)
    {
        $this->amount = $value;
    }

    public function getStatus()
    {
        return $this->status;
    }

    public function setStatus($value)
    {
        $this->status = $value;
    }

    public function getErrorCode()
    {
        return $this->error_code;
    }

    public function setErrorCode($value)
    {
        $this->error_code = $value;
    }

    public function getErrorMessage()
    {
        return $this->error_message;
    }

    public function setErrorMessage($value)
    {
        $this->error_message = $value;
    }

    public function getCreatedAt()
    {
        return $this->created_at;
    }
}